package com.example.whltest.controller;

import org.redisson.api.RReadWriteLock;

public interface RedissonClient {
   
	/**
	 * 获取锁（默认的非公平锁）
	 */
	RLock getLock(String name);
	
	/**
	 * 获取公平锁
	 */
	RLock getFairLock(String name);
	
	/**
	 * 获取读写锁
	 */
	RReadWriteLock getReadWriteLock(String name);
}
